import 'package:flutter/material.dart';
import 'package:flutter_jojo_test/common/base/base_container.dart';
import 'package:flutter_jojo_test/common/resource/color.dart';
import 'package:flutter_jojo_test/common/route/route.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import 'logic.dart';

class SplashPage extends StatelessWidget {
  final logic = Get.put(SplashLogic());
  final state = Get.find<SplashLogic>().state;

  @override
  Widget build(BuildContext context) {
    return  BaseContainer(
          children: [
            Column(
              children: [
                Expanded(child: Container()),
                Image.asset(
                  "assets/images/icon_jojo_splash_logo.png",
                  width: 200.w,
                ),
                SizedBox(height: 16.h),
                Text(
                  "version:1.0.0",
                  style: TextStyle(color: ThemeColor.t1.value, fontSize: 16.sp),
                ),
                SizedBox(height: 32.h),
              ],
            )
          ],
          color: ThemeColor.g1.value,
          statusDark: true,
         );
  }
}
